import request from '@/utils/request'

export const loginApi = (data) => {
  return request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })
}

// 图片验证码
export const logintpyzm = (data) => {
  return request({
    url: '/user-service/user/imageCode/:clientToken',
    method: 'GET',
    data
  })
}
// 图片上传
export const logintpsc = (data) => {
  return request({
    url: '/vm-service/sku/fileUpload',
    method: 'POST',
    data
  })
}




export const getUserInfoApi = () => {
  return request({
    url: '/auth/currentUser'
  })
}

